package org.mathig.poker.action;

import org.mathig.poker.Action;
import org.mathig.poker.PlayerWrapper;
import org.mathig.poker.table.TableHand;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractActions {

	protected Logger logger = LoggerFactory.getLogger(getClass());

	protected PlayerWrapper player;

	protected TableHand tableHand;

	protected AbstractActions(PlayerWrapper player, TableHand tableHand) {
		this.player = player;
		this.tableHand = tableHand;
	}

	public final Action fold() {
		return new FoldAction(player, tableHand);
	}

	public final Action allIn() {
		return new AllInAction(player, tableHand);
	}

}
